<?php

class Site extends CI_Controller {

    public function __construct()
    {
        parent::__construct();
        $this->is_logged_in();
    }
    
    public function members_area()
    {
	   $data['main_content'] = 'dashboard_view';
	   $this->load->view('include/template', $data);
    }
    
    public function is_logged_in()
    {
        $is_logged_in = $this->session->userdata('is_logged_in');
        //echo 'The value is ' . $is_logged_in;
        if(!isset($is_logged_in) || $is_logged_in != true)
        {
            redirect('login');
        }
    }
    
}